Contacts
-
Email id: nastakulik964@gmail.com
-
Discord: Anastasiya(@Antasakul)
-
GitHub: @Antasakul
Skills
-
Knowledge of the c++ programming language
-
Frontend : HTML5, CSS3
-
The methodology of OOP programming
Languages
English(intermediate)
Russian
Belarusian
Projects
This CV represents the first project.
About me
A member of the university student council, participated in charity events. I strive to obtain higher education, I am considering the possibility of studying for a master's degree. I have a high learning ability, I quickly learn new information and apply it in practice.
Education
2022-2026 Belarusian State University of Informatics and Radioelectronics
Specializing in automated information processing systems
Code
The task:
Define the following functions in the class:AddText(), PasteText()
Code:
void addtext(const char* text)
{
int textLength = strlen(text);
char* newBuff = new char[length + textLength + 1];
strcpy_s(newBuff, length + textLength + 1, buff);
strcat_s(newBuff, length + textLength + 1, text);
delete[] buff;
buff = newBuff;
length += textLength;
}
void pastetext(const char* text, int position)
{
int textLength = strlen(text);
char* newBuff = new char[length + textLength + 1];
strncpy_s(newBuff, length + textLength + 1, buff, position);
strncat_s(newBuff, length + textLength + 1, text, textLength);
strncat_s(newBuff, length + textLength + 1, buff + position, length - position);
delete[] buff;
buff = newBuff;
length += textLength;
}